import instance from "@/utils/request";

export function upload(formData) {
  return instance({
    method: "post",
    url: `/user/uploadFace`,
    data: formData
  });
}

export function updatePass(form) {
  return instance({
    method: "post",
    url: `/user/updatePass`,
    data: form
  });
}

export function checkOldPass(pass) {
  return instance({
    method: "post",
    url: `/user/checkOldPass`,
    data: `pass=${pass}`
  });
}
